/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software; you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program; if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.adempiere.model;

import java.math.BigDecimal;
import java.sql.ResultSet;
import java.util.Properties;

import org.compiere.model.I_Persistent;
import org.compiere.model.PO;
import org.compiere.model.POInfo;
import org.compiere.util.Env;

/** Generated Model for M_LoadingLine
 *  @author Adempiere (generated) 
 *  @version Release 3.4.2s - $Id$ */
public class X_M_LoadingLine extends PO implements  I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

    /** Standard Constructor */
    public X_M_LoadingLine (Properties ctx, int M_LoadingLine_ID, String trxName)
    {
      super (ctx, M_LoadingLine_ID, trxName);
    }

    /** Load Constructor */
    public X_M_LoadingLine (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 1 - Org 
      */
    protected int get_AccessLevel()
    {
      return 1;
    }

    /** Load Meta Data */
    static int TableID=900020;    
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, TableID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_M_LoadingLine[")
        .append(get_ID()).append("]");
      return sb.toString();
    }


    static String COLUMNNAME_M_Loading_ID = "M_Loading_ID";
	public void setM_Loading_ID (int M_Loading_ID)
	{
		if (M_Loading_ID < 1)
			 throw new IllegalArgumentException (COLUMNNAME_M_Loading_ID + " is mandatory.");
		set_ValueNoCheck (COLUMNNAME_M_Loading_ID, Integer.valueOf(M_Loading_ID));
	}
	public int getM_Loading_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_M_Loading_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
	static String COLUMNNAME_M_LoadingLine_ID = "M_LoadingLine_ID";
	public void setM_LoadingLine_ID (int M_LoadingLine_ID)
	{
		if (M_LoadingLine_ID < 1)
			 throw new IllegalArgumentException (COLUMNNAME_M_LoadingLine_ID + " is mandatory.");
		set_ValueNoCheck (COLUMNNAME_M_LoadingLine_ID, Integer.valueOf(M_LoadingLine_ID));
	}

	public int getM_LoadingLine_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_M_LoadingLine_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
	
	static String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID";	
	public void setM_InOutLine_ID (int M_InOutLine_ID)
	{
		if (M_InOutLine_ID < 0)
			 throw new IllegalArgumentException (COLUMNNAME_M_InOutLine_ID + " is mandatory.");
		set_Value (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID));
	}

	public int getM_InOutLine_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	

	static String COLUMNNAME_BarcodeCheckedQty = "BarcodeCheckedQty";		
	public void setBarcodeCheckedQty (BigDecimal BarcodeCheckedQty)
	{
		if (BarcodeCheckedQty == null)
			throw new IllegalArgumentException (COLUMNNAME_BarcodeCheckedQty + " is mandatory.");
		set_ValueNoCheck (COLUMNNAME_BarcodeCheckedQty, BarcodeCheckedQty);
	}

	public BigDecimal getBarcodeCheckedQty () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BarcodeCheckedQty);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	
}